package com.woniuxy.Proxy;

import java.net.URL;

/**
 * @author LinKe
 * @version 1.0
 * @date 2021/11/9 15:18
 */
public class ImageViewer {
    public static void main(String[] args) throws Exception {
        String image = "https://cn.bing.com/images/search?view=detailV2&ccid=%2feVslNfi&id=2A8A8ECB65DD2A67EDA8CADF7A06C8176DB30922&thid=OIP._eVslNfikB5-_DRsxRKIFAHaG4&mediaurl=https%3a%2f%2f1428elm.com%2ffiles%2f2019%2f08%2fThe-Entity-Courtesy-of-Scream-Factory.jpg&exph=726&expw=781&q=entity&simid=608055339349780537&FORM=IRPRST&ck=C1F1FF3AE50C69DFA358FA3D7DCCA53A&selectedIndex=0&ajaxhist=0&ajaxserp=0";
        URL url = new URL(image);
        HighResolutionImage highResolutionImage = new HighResolutionImage(url);
        ImageProxy imageProxy = new ImageProxy(highResolutionImage);
        imageProxy.showImage();
    }
}
